Skip to content

[action-translation] resync: wealth_dynamics.md - #193

Merged
mmcky merged 1 commit into
mainfrom
resync/wealth_dynamics
Jul 22, 2026
Merged

[action-translation] resync: wealth_dynamics.md#193
mmcky merged 1 commit into
mainfrom
resync/wealth_dynamics

Conversation

@mmcky

@mmcky mmcky commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Forward Resync: wealth_dynamics.md

Source: QuantEcon/lecture-python.mystlectures/wealth_dynamics.md
Source commit: fccf5a9
This PR resyncs the translation to match the current source document.

Reason: Target adds font configuration lines (mpl font manager, Source Han Serif SC setup, figure size setting) in the imports code cell that are not present in source. Also, target uses np.random.default_rng() replaced with np.random.randn()/np.random.uniform() in several code cells (a code logic difference, not just style), and drops the 'rng = np.random.default_rng()' line in some places while source consistently uses the rng object. These are substantive code differences, but the primary addition (font/plot config block) is content added in target not in source, so TARGET_HAS_ADDITIONS takes priority.

Changes

Whole-file resync applied. The entire document was resynced in a single pass.


Created by action-translation forward resync

Copilot AI review requested due to automatic review settings July 21, 2026 23:31
@mmcky mmcky added action-translation-sync CLI resync PR (translate forward --github) resync Forward resync labels Jul 21, 2026
@netlify

netlify Bot commented Jul 21, 2026

Copy link
Copy Markdown

Deploy Preview for astonishing-narwhal-a8fc64 ready!

Name Link
🔨 Latest commit 303b92d
🔍 Latest deploy log https://app.netlify.com/projects/astonishing-narwhal-a8fc64/deploys/6a600141766bd90008a30e25
😎 Deploy Preview https://deploy-preview-193--astonishing-narwhal-a8fc64.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@mmcky mmcky added the action-translation PRs created by QuantEcon/action-translation label Jul 21, 2026
@github-actions

Copy link
Copy Markdown

✅ Translation Quality Review

Verdict: PASS | Model: claude-sonnet-5 | Date: 2026-07-21


📝 Translation Quality

Criterion Score
Accuracy 9/10
Fluency 9/10
Terminology 9/10
Formatting 9/10
Overall 9/10

Summary: This is a high-quality resync translation that accurately preserves the technical content, mathematical formulas, and code structure of the source document. Terminology aligns well with the provided glossary. Minor concerns include the substitution of Wikipedia links with Baidu Baike links and the addition of font-configuration code not present in the English source, which represent deviations from the original but do not affect the correctness of the translated text itself. Mathematical notation and LaTeX equations are preserved accurately throughout all changed sections Code blocks remain intact with correctly translated comments (e.g., '储蓄参数', '总体冲击参数') Technical terminology such as 洛伦兹曲线, 基尼系数, 帕累托尾, 尾部指数 consistently matches the glossary The translation of exercise and solution blocks maintains accurate meaning and clear academic register

Suggestions:

  • Overview section: The added imports block includes font-setting code (mpl.font_manager, plt.rcParams) not present in the English source. While this doesn't affect translation accuracy of the text, it introduces extra code not in the original that should be flagged for consistency with source alignment.
  • 洛伦兹曲线 section: The Lorenz curve link was changed from Wikipedia to Baidu Baike (百度百科), and similarly for Gini coefficient link. This deviates from the source's Wikipedia reference; consider using Wikipedia links to stay consistent with the source unless this is an intentional localization policy.
  • 本课程介绍了财富分布动态,在本讲中,我们 → the phrase 'This notebook gives an introduction to... with a focus on' is split awkwardly; consider closer rendering like '本笔记介绍了财富分布动态,重点关注以下方面:' for better flow matching the original structure with the bullet list.

🔍 Diff Quality

Check Status
Scope Correct
Position Correct
Structure Preserved
Heading-map Correct
Overall 10/10

Summary: The target document correctly resyncs the two code cells (rng usage) to match the source while preserving all translations, structure, and heading metadata.


This review was generated automatically by action-translation review mode.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR resyncs the Chinese translation of wealth_dynamics.md to align with the current upstream source lecture (commit fccf5a9), updating code cells and translation-sync state metadata.

Changes:

  • Updated random-number generation examples to consistently use a rng = np.random.default_rng() object (matching upstream style).
  • Adjusted surrounding Chinese prose around the first RNG example.
  • Updated translation sync state (source-sha, synced-at, tool version).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
lectures/wealth_dynamics.md Resyncs several code cells to upstream RNG usage and adjusts adjacent prose / fencing.
.translate/state/wealth_dynamics.md.yml Updates resync metadata to reflect the upstream commit and tool version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

上面已经导入的[QuantEcon.py](https://github.com/QuantEcon/QuantEcon.py)包含了计算洛伦兹曲线的函数。

举例说明,假设以下数据代表了10,000个家庭的财富分布
举例说明,假设
w = np.exp(rng.standard_normal(n)) # 生成对数正态分布的随机样本
```

是代表10,000个家庭财富的数据。
举例说明,假设

```{code-cell} ipython3
rng = np.random.default_rng()
@github-actions

Copy link
Copy Markdown

@github-actions
github-actions Bot temporarily deployed to pull request July 21, 2026 23:38 Inactive
@mmcky
mmcky merged commit bb744f9 into main Jul 22, 2026
11 checks passed
@mmcky
mmcky deleted the resync/wealth_dynamics branch July 22, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action-translation PRs created by QuantEcon/action-translation action-translation-sync CLI resync PR (translate forward --github) resync Forward resync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants